﻿using AppService.IService.System_dictionary;
using Domain.Entity.System_dictionary;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace WebAPI.Controllers.System_dictionary
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ChildrenController : ControllerBase
    {
        private readonly IChildrenService childrenService;

        public ChildrenController(IChildrenService childrenService)
        {
            this.childrenService = childrenService;
        }
        /// <summary>
        /// 次级连表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<Children> GetChildrens()
        {
            return childrenService.childrens();
        }
    }
}
